<h1>Tipo de Conteudo</h1>
<%= error_messages_for :config_conteudo %>
<% form_for(@config_conteudo) do |f| %>
<%= f.submit "Update" %>
<table>
  <tr>
    <td>Nome</td><td><%= f.text_field :nome %></td>
  </tr>
  <tr>
    <td>Icone</td><td><%= f.text_field :icone %></td>
  </tr>
  <tr>
    <td>Classe</td><td><%= f.text_field :classe %></td>
  </tr>
  <tr>
    <td>Ordem</td><td><%= f.text_field :ordem %></td>
  </tr>
  <tr>
    <td>Pasta</td><td><%= f.check_box :pasta %></td>
  </tr>
  <tr>
    <td>Arquivo</td><td><%= f.check_box :arquivo %></td>
  </tr>
  <tr>
    <td valign="top">Categorias</td>
    <td>
        <% Categoria.raizes.each do |c| %>
          <%= check_box_tag 'categoria[]',c.id,@config_conteudo.tem_categoria(c) %>
          <%=c.nome%>
          <br/>
        <% end %>
    </td>
  </tr>
</table>  
<% end #form%>
<%= link_to 'Back', config_conteudos_path %>